server: prevent update vm read-only details#4629
Conversation
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2613 |
Signed-off-by: Abhishek Kumar <abhishek.kumar@shapeblue.com>
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2619 |
|
@shwstppr good, thanks. |
|
@weizhouapache I think changing global setting name would require DB change and doc changes, the feature/user of the change is only UI so I guess that's why the setting name has |
|
@weizhouapache maybe we can change setting name in master alongwith similar setting changes #4135? cc @rhtyd @DaanHoogland |
|
@shwstppr that PR also needs more attention to updates. I agree with the principle as this is not only UI but also API (which would be a security issue if it wasn't) as is this change lgtm |
@rhtyd @DaanHoogland |
Signed-off-by: Abhishek Kumar <abhishek.kumar@shapeblue.com>
|
@blueorangutan package |
|
@shwstppr a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✖centos8 ✔debian. JID-2627 |
Pearl1594
left a comment
There was a problem hiding this comment.
Verified Behaviour. LGTM
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3462)
|
* 4.14: server: prevent update vm read-only details (#4629)
PR apache#4629 made changes in updateVirtualMachine behaviour wrt readonly details. This change updates UI wrt new behaviour. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
PR #4629 made changes in updateVirtualMachine behaviour wrt readonly details. This change updates UI wrt new behaviour. Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Description
Fixes behaviour in updateVirtualMachine API by disallowing updating read-only details (details mentioned in global setting
user.vm.readonly.ui.details) of the VM for accounts other than root-admin using API. Such read-only details will be copied from original values.Fixes #4514
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?